angular.module('starter.services', [])

.factory("FormObj",function (){
    return [
       {
            "ID": '', //客户ID
			"CODE": '', //客户唯一标识
			"REAL_NAME": '',//姓名
			"SEX": '',//性别
			"BIRTHDAY": '',//生日
			"TYPE": '',//客户类型
			"IDTYPE": '',//证件类型
			"IDNO": '',//证件号
			"ID_START_DATE": '',//证件有效起日
			"ID_END_DATE": '',//证件有效止日
			"IS_FOREVER": '',//长期有效
			"MARRI_STATUS": '',//婚姻状况
			"NATIVE_PLACE": '',//国籍
			"RGT_PROVINCE": '',//户籍省
			"NATIONALITY": '',//民族
			"SOURCE": '',//客户来源
			"EDUCATION": '',//学历
			"HOBBY": '',//爱好
			"ANNIVERSARY": '',//特殊纪念日
			"INCOME": '',//收入
			"INCOME_WAY": '',//收入来源
			"OTHER_INCOME_WAY": '',//其他收入来源
			"OCCUPATION_CODE": '',//职业代码
			"WORK_UNIT": '',//工作单位
			"HEIGHT": '',//身高
			"WEIGHT": '',//体重
			"ACCOUNT_TENDENCY": '',//账户倾向
			"HOME_PROVINCE": '',//家庭地址（省）
			"HOME_CITY": '',//家庭地址（市）
			"HOME_COUNTY": '',//家庭地址（区）
			"HOME_ADDRESS": '',//家庭详细地址
			"HOME_ZIP_CODE": '',//家庭邮编
			"COMPANY_PROVINCE": '',//单位地址（省）
			"COMPANY_CITY": '',//单位地址（市）
			"COMPANY_COUNTY": '',//单位地址（区）
			"COMPANY_ADDRESS": '',//单位详细地址
			"COMPANY_ZIP_CODE": '',//单位邮编
			"HOME_PHONE": '',//家庭电话
			"COMPANY_PHONE": '',//公司电话
			"MOBILE": '',//手机号码
			"EMAIL": '',//邮箱
			"MAILING_ADDRESS": '',//邮寄地址
			"REMARKS": '',//备注
			"CREATE_TIME": '2014-01-01',//创建时间
			"UPDATE_TIME": '2014-11-13',//修改时间
			"STATE": '',//状态
			"AGENT_CODE": '',//业务员编号
			"RGT_CITY": '',//户籍市
			"QQ": '',//QQ号
			"MSN": '',//msn号
			"WEIBO_TYPE": '',//微博类型
			"WEIBO_NO": '',//微博账号
			"PLURALITY_OCCUPATION_CODE": '',//兼职职业类别
			"FLAG": '',//判断数据是否同步
			"IOCN": '',//客户图像
            "PRONAME":''//职业名称
        }
    ];
})
//详情tab
.factory("DetailsTabs",function (){
    return [
       {
            title: '基本信息',
            url: '1'
          
        }, {
            title: '关系信息',
            url: '2'
        }
    ];
})
//新建客户tab
.factory("tabs",function (){
    return [
       {
            title: '基本信息',
            url: '1'
          
        }, {
            title: '客户地址',
            url: '2'
        }, {
            title: '关系信息',
            url: '3'
        }
    ];
})
//客户标签
.factory("labels",function (){
    return [
       {
            MARK_NAME: '优质客户',
            id: '1'
          
        }, {
            MARK_NAME: '可发展',
            id: '2'
        }
    ];
})
//客户信息
.factory("information",function (){
    return [{                    
        "ClientType" : ["准客户"],
        "ClientSource" : ["缘故" , "转介绍", "陌生拜访", "主顾开拓活动"],
        "ClientNation" : ["汉族" , "回族", "满族"],
        "Nationality": ["中国"],
        "Province": ["北京"],
        "City": ["海淀"],
        "County": ["西二旗"],
        "CertificateType": ["二代身份证"],
        "EducationBackground": ["博士以上","硕士","大本","大专","中专","高中", "初中", "其它"],
        "MARRI_STATUS": ["未婚","已婚","离异","丧偶"],
        "Sex": ["0", "1"],
        "companyType":["工薪","私营","房屋出租","其它"],
        "ACCOUNT_TENDENCY":["人身保障账户","养老储蓄账户","健康医疗账户","子女养育账户","转向投资账户","其他账户"],
        "CustomerTags":["优质客户","可发展","关系客户","需要跟进"],
        "sites": ["家庭地址","单位地址"],
        "Relationship": ["父亲", "母亲", "儿子"],
        "Number": ['邮箱', '微博', '微信', 'QQ']
    }]; 
})
// 客户标签
.factory("clientLabels",function(){
    return [
    {         
        "name": "优质客户",
    	"number": "23",
    	"ID": "121"
    },{
        "name": "需要跟进",
        "number": "23",
    	"ID": "122"
    },{
        "name": "老客户",
        "number": "23",
    	"ID": "123"
    },{
        "name": "关系客户",
        "number": "23",
    	"ID": "124"
    },{
        "name": "朋友",
        "number": "23",
    	"ID": "125"
    },{
        "name": "亲属",
        "number": "23",
    	"ID": "126"
    },{
        "name": "藏友",
        "number": "23",
    	"ID": "127"
    }];
    
})
//用户列表
.factory("clientLists",function (){
    return [
       {
            name: '陈博',
            icon: 'img/man.png',
            adress: '北京',
            tel: '+86 13475982829',
            id: "111"
          
        }, {
            name: '陈小龙',
            icon: 'img/man.png',
            adress: '北京',
            tel: '+86 13475982829',
            id: '112'
        }, {
            name: '窦玉娇',
            icon: 'img/man.png',
            adress: '北京',
            tel: '+86 13475982829',
            id: '113'
        }
    ];
})
//客户标签
.factory("customerMark",function(){
    return [{ 
        ID:"",                
        NAME: ""  
    }];
})
//职业代码查询
.factory("occupationQuery",function(){
    return [{ 
        WORD:""
    }];
})

